package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.dto.subject.TreeOneSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author Y丶HS练习谷粒商城
 * @since 2022-09-23
 */
public interface EduSubjectService extends IService<EduSubject> {
    /**
     * 上传excel文件
     * @param file 文件
     * @param subjectService 服务
     */
    void saveSubject(MultipartFile file, EduSubjectService subjectService);

    /**
     * 获取树形菜单
     * @return
     */
    List<TreeOneSubject> getTreeEntity();
}
